home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 July: Mac OS SDK / Dev.CD Jul 00 SDK2.toast / Development Kits / Hardware / PowerManager DDK 1.0f1 / SampleDriver / SampleDriver.make < prev    next >
Encoding:
Text File  |  1999-11-30  |  2.8 KB  |  92 lines  |  [TEXT/MPS ]

  1. #
  2. #    File:        SampleDriver.make
  3. #
  4. #    Contains:    Sample code for a PCI device driver that supports PCI power off.
  5. #    
  6. #                You may incorporate this sample code into your applications without
  7. #                restriction, though the sample code has been provided "AS IS" and the 
  8. #                responsibility for its operation is 100% yours.  However, what you are 
  9. #                not permitted to do is to redistribute the source as "DSC Sample Code" 
  10. #                after having made changes. If you're going to re-distribute the source, 
  11. #                we require that you make it clear in the source that the code was 
  12. #                descended from Apple Sample Code, but that you've made changes.
  13. #
  14. #    Version:    1.0
  15. #
  16. #    Copyright:    © 1999 by Apple Computer, Inc., all rights reserved.
  17. #
  18. #    File Ownership:
  19. #
  20. #        DRI:                xxx put dri here xxx
  21. #
  22. #        Other Contact:        xxx put other contact here xxx
  23. #
  24. #        Technology:            xxx put technology here xxx
  25. #
  26. #    Writers:
  27. #
  28. #       (SAJ)   Scott Johnson
  29. #        (BB)    Bob Bradley
  30. #
  31. #    Change History (most recent first):
  32. #
  33. #       <1>     11/30/99    SAJ     Updated to include NameRegistryLib.
  34. #        <0+>     7/11/99    BB        First checked in.
  35. #
  36.  
  37. SampleDriverCompiler         =     MrC
  38. SampleDriverLinker             =     PPCLink
  39.  
  40. SampleDriverCompileOptions    =     -proto strict -ansi on -i {SampleDriverDir}
  41. SampleDriverLinkOptions        =     -m DoDriverIO                    ∂
  42.                                 -xm sharedlibrary                ∂
  43.                                 -d                                ∂
  44.                                 -w                                ∂
  45.                                 -share global                    ∂
  46.                                 -t 'ndrv' -c 'Samp'                ∂
  47.                                 -map {MapDir}SampleDriver.map
  48.  
  49. #===================================================================================================
  50.  
  51. SampleDriverMakeFile =                             ∂
  52.     "{SampleDriverDir}"SampleDriver.make
  53.  
  54. SampleDriverObjects =                             ∂
  55.     "{ObjDir}SampleDriver.c.o"
  56.  
  57. SampleDriverLibraries =                         ∂
  58.     "{StubLibraries}"NameRegistryLib            ∂
  59.     "{StubLibraries}"DriverServicesLib
  60.  
  61. SampleDriverIncludeDependencies =                 ∂
  62.     "{CIncludes}Devices.h"                        ∂
  63.     "{CIncludes}DriverFamilyMatching.h"            ∂
  64.     "{CIncludes}NameRegistry.h"                    ∂
  65.     "{CIncludes}Power.h"                        ∂
  66.     "{SampleDriverDir}SampleDriver.h"
  67.  
  68. SampleDriverDependencies =                         ∂
  69.     {SampleDriverMakeFile}                        ∂
  70.     {SampleDriverIncludeDependencies}
  71.  
  72. #===================================================================================================
  73.  
  74. SampleDriver ƒ "{LibDir}"SampleDriver
  75.     Beep 1300,3,255 0,1,255  1200,3,255 0,1,255 1100,3,255 0,1,255  1000,3,255
  76.  
  77. "{LibDir}"SampleDriver    ƒ    {SampleDriverMakeFile}        ∂
  78.                             {SampleDriverObjects}        ∂
  79.                             {SampleDriverLibraries}
  80.     PPCLink                            ∂
  81.         {SampleDriverLibraries}        ∂
  82.         {SampleDriverObjects}        ∂
  83.         {SampleDriverLinkOptions}    ∂
  84.         -weaklib DriverServicesLib    ∂
  85.         -o {Targ}
  86.  
  87. #===================================================================================================
  88.  
  89. "{ObjDir}SampleDriver.c.o"    ƒ    "{SampleDriverDir}SampleDriver.c"    ∂
  90.                                 {SampleDriverDependencies}
  91.     {SampleDriverCompiler}    "{SampleDriverDir}SampleDriver.c" {SampleDriverCompileOptions} -o {Targ}
  92.